package com.testfileupload.uploadimg.design.intermediary.zhongjie;

/**
 * 把同事类注入到中介者类中
 */
public abstract class AbstractMediator {
    protected Purcchase purcchase;
    protected Sale sale;
    protected Stock stock;

    public AbstractMediator() {
        purcchase = new Purcchase(this);
        sale = new Sale(this);
        stock = new Stock(this);
    }

    //中介者最重要的方法，来处理多对象间的关系
    public abstract void execute(String str, Object... obj);
}
